package com.lyj.mall.service;

import com.lyj.mall.pojo.User;
import com.lyj.mall.vo.ResponseVo;

/**
 * @author  lyj
 * @date  2019/12/17 23:33
 */
public interface UserService{


    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    ResponseVo<User> register(User user);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    ResponseVo<User> login(String username, String password);

    User selectUserByUsername(String username);
}
